#include <gio/gunixoutputstream.h>
#include <gio/gunixinputstream.h>
-static char *
-get_object_path (OstreeRepo *self,
- const char *checksum,
- OstreeObjectType type);
-
enum {
PROP_0,
return ret;
}
-static char *
-get_object_path (OstreeRepo *self,
- const char *checksum,
- OstreeObjectType type)
+char *
+ostree_repo_get_object_path (OstreeRepo *self,
+ const char *checksum,
+ OstreeObjectType type)
{
OstreeRepoPrivate *priv = GET_PRIVATE (self);
char *ret;
char *checksum_dir = NULL;
char *object_path = NULL;
- object_path = get_object_path (self, checksum, type);
+ object_path = ostree_repo_get_object_path (self, checksum, type);
checksum_dir = g_path_get_dirname (object_path);
if (!ot_util_ensure_directory (checksum_dir, FALSE, error))
g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
- path = get_object_path (self, sha256, OSTREE_OBJECT_TYPE_META);
+ path = ostree_repo_get_object_path (self, sha256, OSTREE_OBJECT_TYPE_META);
if (!ostree_parse_metadata_file (path, &ret_type, &ret_variant, error))
goto out;
char *object_path;
char *dest_path;
- object_path = get_object_path (self, checksum, OSTREE_OBJECT_TYPE_FILE);
+ object_path = ostree_repo_get_object_path (self, checksum, OSTREE_OBJECT_TYPE_FILE);
dest_path = g_build_filename (destination, filename, NULL);
if (priv->archive)
#ifndef _OSTREE_REPO
#define _OSTREE_REPO
-#include <glib-object.h>
+#include "ostree-core.h"
G_BEGIN_DECLS
GKeyFile *new_config,
GError **error);
+char * ostree_repo_get_object_path (OstreeRepo *self,
+ const char *object,
+ OstreeObjectType type);
+
gboolean ostree_repo_store_packfile (OstreeRepo *self,
const char *expected_checksum,
const char *path,